package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.IndexFilterEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @description: 首页看板筛选偏好设置表
 * @Author: hongxiao
 * @date: 2019-02-26 15:50
 * @since v1.0
 */
@Repository
@Mapper
public interface IndexFilterDao {
    Integer insert(IndexFilterEntity indexFilterEntity);

    Integer update(IndexFilterEntity indexFilterEntity);

    Integer deleteByKey(@Param("key") Long key, @Param("corpid") String corpid);

    IndexFilterEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid);

    List<IndexFilterEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
